
using System;
using System.Data;
using System.Runtime.Serialization;

namespace MinCultura.Sipa.DataAccess.AgentesArtes
 {
     /// <summary>
     /// A custom serializable dataset containing 
     /// </summary>

     [Serializable()]
     [System.ComponentModel.DesignerCategoryAttribute("code")]
      

	/// <summary>Class for handling datasets</summary>  
	public class AreaArtisticasData : DataSet
	{
    ///
    /// Constants for table and fields mapping
    ///
		public const string ART_AREA_ARTISTICAS_TABLE = "ART_AREA_ARTISTICAS";
    
    public const string ARD_ID_FIELD = "ARD_ID";
    public const string ARD_AREA_ARTISTICA_FIELD = "ARD_AREA_ARTISTICA";
    
    
    protected AreaArtisticasData(SerializationInfo info, StreamingContext context)
    {
    //
    }

    public AreaArtisticasData()
    {
       BuildDataTables();
    }
     
    /// <summary>
    /// Creates the following datatables: Localidades
    /// </summary>
    private void BuildDataTables()
		{
        DataTable table;
        DataColumnCollection columns;
        table = new DataTable(ART_AREA_ARTISTICAS_TABLE);
        columns = table.Columns;
        
        columns.Add(ARD_ID_FIELD, typeof(System.Decimal));

        columns.Add(ARD_AREA_ARTISTICA_FIELD, typeof(System.String));
				columns[ARD_AREA_ARTISTICA_FIELD].Caption = "Nombre";

        this.Tables.Add(table);
    }
        
    /// <summary>
	/// Add a new row to the table
	/// </summary>
	/// <param name="row">Dataset row
	public void addAreaArtisticas(DataRow row)
	{
		this.Tables[ART_AREA_ARTISTICAS_TABLE].Rows.Add(row);
	}    
        
 }    
  
}  
